/**
 * 
 */
package com.indux.prefset.db.domain;

import java.util.HashMap;

/**
 * @author IndUX
 *
 */
public class Field extends HashMap<String, String>
{
	private static final long serialVersionUID = 1381683554839724823L;
	
	private static final String FIELD_NAME = "FieldName";
	private static final String FIELD_VALUE = "FieldValue";
	
	public String getFieldName()
	{
		return get(FIELD_NAME);
	}
	
	public void setFieldName(String fieldName)
	{
		put(FIELD_NAME, fieldName);
	}
	
	public String getFieldValue()
	{
		return get(FIELD_VALUE);
	}
	
	public void setFieldValue(String fieldValue)
	{
		put(FIELD_VALUE, fieldValue);
	}
	
	@Override
	public String toString()
	{
		return getFieldName() + "=" + getFieldValue();
	}
	
}
